package com.sfc.core.controller;

import com.sfc.annotation.Controller;
import com.sfc.annotation.RequestMapping;
import com.sfc.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Description:
 *              测试类
 * Version: 1.0
 * Author: 孙付存
 * E-mail: 874878489@qq.com
 * Create Date Time: 2018/6/5.
 * Update Date Time:
 *
 * @see
 */
@Controller
public class TestController {

    @RequestMapping("/test1")
    public void test1(HttpServletRequest request, HttpServletResponse response,
                      @RequestParam("param") String param){
        System.out.println("*******************************************************");
        System.out.println(param);
        try {
            response.getWriter().write( "doTest method success! param:"+param);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
